# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-munkres
_pkgname=munkres
pkgver=1.1.2
pkgrel=2
pkgdesc="Munkres algorithm for the assignment problem"
url="http://software.clapper.org/munkres/"
arch="noarch"
license="Apache-2.0"
makedepends="py3-setuptools"
checkdepends="py3-nose"
source="$_pkgname-$pkgver.tar.gz::https://github.com/bmc/munkres/archive/release-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-release-$pkgver"

replaces="py-munkres" # Backwards compatibility
provides="py-munkres=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}


sha512sums="4a8b698f53812303f5020b4fc357f859a63d97370fe311d16ae959addd9cacee65667e430cd0d00496e423c1f0c7a3c8d4219ba49600a982de323fadd2c03bec  munkres-1.1.2.tar.gz"
